import Vue from 'vue'
import App from './App.vue'
import router from './router'
import ElementUI from 'element-ui';//全部引入 效率会慢点
import 'element-ui/lib/theme-chalk/index.css';//引入组件css样式
import axios from "axios"
import VueAxios from "vue-axios";

Vue.use(ElementUI);//使用组件
Vue.use(VueAxios,axios)
//设置全局的Content-Type
axios.defaults.headers.common['Content-Type'] = "application/x-www-form-urlencoded";

Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
